package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.cssy.xxkj.logic.entity.LogicWarehouseMaterialoutItemDO;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2014-10-29
 */
public interface LogicWarehouseMaterialoutItemDAO  {

    /**
     * 插入数据
     * @param logicWarehouseMaterialoutItemDO
     * @return 插入数据的主键
     */
    public String insertLogicWarehouseMaterialoutItemDO(LogicWarehouseMaterialoutItemDO logicWarehouseMaterialoutItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicWarehouseMaterialoutItemDO
     * @return 查出的记录数
     */
    public Integer countLogicWarehouseMaterialoutItemDOByExample(LogicWarehouseMaterialoutItemDO logicWarehouseMaterialoutItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicWarehouseMaterialoutItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicWarehouseMaterialoutItemDO(LogicWarehouseMaterialoutItemDO logicWarehouseMaterialoutItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicWarehouseMaterialoutItemDO
     * @return 对象列表
     */
    public List<LogicWarehouseMaterialoutItemDO> findListByExample(LogicWarehouseMaterialoutItemDO logicWarehouseMaterialoutItemDO) throws DataAccessException;
    
    public List<LogicWarehouseMaterialoutItemDO> findListByMap(Map<String, Object> paramMap)throws DataAccessException;

    /**
     * 根据主键获取logicWarehouseMaterialoutItemDO
     * @param id
     * @return logicWarehouseMaterialoutItemDO
     */
    public LogicWarehouseMaterialoutItemDO findLogicWarehouseMaterialoutItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWarehouseMaterialoutItemDOByPrimaryKey(String id) throws DataAccessException;
    /**
     * 根据主表ID查询Item
     * @param pid
     * @return
     */
    public List<LogicWarehouseMaterialoutItemDO> findByPid(String pid);
    /**
     * 根据主表ID删除Item记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteByPid(String id);
    
    public List<LogicWarehouseMaterialoutItemDO> finListByCondition(SearchConditions scs) throws DataAccessException;

}